﻿import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import infiniteScroll from 'vue-infinite-scroll'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import AwesomePicker from 'vue-awesome-picker'
import areaData from '../node_modules/vue-awesome-picker/src/area.js'
import axios from './assets/axios'
import tools from './assets/tools'
import { DatetimePicker } from 'vant'
import { Popup } from 'vant'
import 'vant/lib/index.css'
import 'swiper/dist/css/swiper.css'
import './assets/flexible'
import '../stylus/css/reset.css'
import '../stylus/font/iconfont.css'

Vue.prototype.$photo = 'http://muse.musehz.com'
Vue.prototype.$areaData = areaData
Vue.prototype.$tools = tools
Vue.prototype.$axios = axios
Vue.prototype.$jump = function (url) {
  this.$router.push({
    path: url
  })
}
Vue.prototype.$jp = function (url, params) {
  this.$router.push({
    name: url,
    params: params
  })
}
Vue.prototype.$back = function () {
  this.$router.go(-1)
}

Vue.use(VueAwesomeSwiper)
Vue.use(AwesomePicker)
Vue.use(infiniteScroll)
Vue.use(DatetimePicker)
Vue.use(Popup)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
